Fuzion Logo
fuzion-lang.dev — The Fuzion Language Portal
JavaScript seems to be disabled. Functionality is limited.

substring

String.substring

(from i64, to i64)
 => 
String
create substring of this string consisting of bytes from (inclusive) .. to (exclusive).
Precondition
pre
  debug: 0 ≤ from ≤ to ≤ String.this.byte_count
  debug: from=to || String.is_valid_utf8_first_byte utf8[from]
  debug: from=to || !String.is_multi_byte_start_byte utf8[to-1]
Postcondition
post
  debug 10 : result.codepoints_and_errors ∀ (.ok)
0.099dev (GIT hash 02118e9cbed77f3897084a4a507da3f11ac8881e)
last changed: 2026-09-02